#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time      :2021/3/26 14:02
# @Author    :cjw
from threading import Thread


def func():
	for i in range(1000):
		print('func', i)


if __name__ == '__main__':
	t = Thread(target=func)  # 创建线程并给线程安排任务
	t.start()  # 多线程状态为可以开始工作状态，具体的执行时间由cpu决定
	for i in range(1000):
		print('main', i)
